package com.cuit.filter;

import com.cuit.constants.Constants;
import com.cuit.extension.ExtensionLoader;

public class FilterChainController {

    private final ExtensionLoader<Filter> filterExtensionLoader;
    public FilterChainController() {
        filterExtensionLoader = ExtensionLoader.getExtensionLoader(Filter.class);
    }

    public FilterChain getConsumerFilterChain(){

        FilterChain filterChain = FilterChain.makeFilterChain(filterExtensionLoader.getActiveExtension(Constants.CONSUMER));
        return filterChain;
    }


}
